﻿#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑频道</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<link href="/include/manage/dialog/asyncbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/include/manage/js/jquery.js"></script>
<script type="text/javascript" src="/include/manage/js/AsyncBox.js"></script>
<script language="javascript">
jQuery.ajaxSetup ({
	cache: false
});

$(function(){
	$('#chooseType').click(function(){
		asyncbox.open({
			title : '选择父频道',
			url : '/manage_type_ajax.ad?parameter=showList&checkStyle=radio',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择父频道',
				content : '请选择本频道所属的频道'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　if(action == 'ok'){
					var nodes = iframe.zTree1.getCheckedNodes();
					jQuery("#showType").val(nodes[0].name);
					jQuery("#stype").val(nodes[0].id);
		　　　　}
		　　}
		});
	});
	
	$('#chooseTree').click(function(){
		asyncbox.open({
			title : '选择频道树',
			url : '/manage_tree_ajax.ad?parameter=showList&checkStyle=radio',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择频道树',
				content : '请选择要应用的频道树'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
					var nodes = iframe.zTree1.getCheckedNodes();
					$("#showTree").val(nodes[0].name);
					$("#stree").val(nodes[0].id);
		　　　　　}
		　　　}
		});
	});
	
	$('#chooseIndexTemplate').click(function(){
		asyncbox.open({
			title : '选择频道封面',
			url : '/manage_template_ajax.ad?sid=$!type.site',
			width : 400,
			height : 300,
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　if(action == 'ok'){
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						str+=$(this).val()+',';
					});
					$("#index_template").val(str);
		　　}
		　　}
		});
	});
	
	$('#chooseTypeTemplate').click(function(){
		asyncbox.open({
			title : '选择频道模板',
			url : '/manage_template_ajax.ad?sid=$!type.site',
			width : 400,
			height : 300,
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　if(action == 'ok'){
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						str+=$(this).val()+',';
					});
					$("#type_template").val(str);
		　　}
		　　}
		});
	});
	
	$('#chooseNewsTemplate').click(function(){
		asyncbox.open({
			title : '选择内容模板',
			url : '/manage_template_ajax.ad?sid=$!type.site',
			width : 400,
			height : 300,
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						str+=$(this).val()+',';
					});
					$("#news_template").val(str);
		　　　　　}
		　　　}
		});
	});
	
	$('#chooseForm').click(function(){
		asyncbox.open({
			title : '选择扩展表单',
			url : '/manage_form_ajax.ad',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择扩展表单',
				content : '可显示用户自定义的表单'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
		　　　　　　　var s='';
					var str='';
					$("input[name='sel_form']:checked",iframe.document.body).each(function(){
						s=$(this).next().text();
						str=$(this).val();
					});
					$("#userForm").val(s);
					$("#form").val(str);
		　　　　　}
		　　　}
		});
	});
	
	$('#chooseAdmin').click(function(){
		asyncbox.open({
			title : '选择频道编辑',
			url : '/manage_user_ajax.ad?popedom=0',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择频道编辑',
				content : '频道编辑可维护指定频道的文章'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
		　　　　　　　var s='';
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						s+=$(this).next().text()+",";
						str+=$(this).val()+",";
					});
					$("#typeUsers").val(s);
					$("#admin").val(str);
		　　　}
		　	}
		});
	});
	
	$('#chooseAudit').click(function(){
		asyncbox.open({
			title : '选择频道审核员',
			url : '/manage_user_ajax.ad?popedom=1',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择频道审核员',
				content : '频道审核员可审核指定频道的文章'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
		　　　　　　　var s='';
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						s+=$(this).next().text()+",";
						str+=$(this).val()+",";
					});
					$("#typeAudits").val(s);
					$("#audit").val(str);
		　　　}
		　	}
		});
	});
	
	$('#chooseFlow').click(function(){
		asyncbox.open({
			title : '选择频道工作流',
			url : '/manage_flow_ajax.ad?sid=$!type.site',
			width : 400,
			height : 300,
			tipsbar:{
				title : '选择频道工作流',
				content : '使用工作流的频道将按照工作流的设计流程操作一篇文章。'
				},
		　　btnsbar : jQuery.btn.OKCANCEL,
		　　callback : function(action,iframe){
		　　　　　if(action == 'ok'){
		　　　　　　var s='';
					var str='';
					$("input[name='sel_user']:checked",iframe.document.body).each(function(){
						s=$(this).next().text();
						str=$(this).val();
					});
					$("#typeFlow").val(s);
					$("#flow").val(str);
		　　　}
		　	}
		});
	});
	
	$('#gentypelist').click(function(){
		asyncbox.open({
			title : '生成频道列表页',
			url : '/include/manage/generate_type.jsp?tid=$!type.id',
			width : 400,
			height : 300,
			modal : true,
			tipsbar:{
				title : '生成频道列表页',
				content : '注意：仅当使用网站静态化时，此功能才有效，生成过程中请不要关闭窗口'
				},
		　　btnsbar : jQuery.btn.OK,
		　　callback : function(action,iframe){
		　　　}
		});
	});
	
	$('#gentype').click(function(){
		if(confirm("系统会将此任务调整到后台执行，您可以在后台右上角看到执行进度，确定执行吗？")){
			window.parent.parent.loadTask("gentype","$!type.id",1);
			//jQuery('#taskbar').load('/include/system/status.jsp?sid=$!site.id');
		}
	});
		
});

function setSubTypeDisplay(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setTypeDisplayToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setTypeDisplay&id=$!type.id',function(data){
				$('#setTypeDisplayToChild')[0].disabled=false;
			});
	}
}

function setSubIndexTemplate(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setIndexTemplateToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setIndexTemplate&id=$!type.id',function(data){
				$('#setIndexTemplateToChild')[0].disabled=false;
			});
	}
}

function setSubTypeTemplate(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setTypeTemplateToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setTypeTemplate&id=$!type.id',function(data){
				$('#setTypeTemplateToChild')[0].disabled=false;
			});
	}
}

function setSubNewsTemplate(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setNewsTemplateToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setNewsTemplate&id=$!type.id',function(data){
				$('#setNewsTemplateToChild')[0].disabled=false;
			});
	}
}

function setAdminChild(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setAdminToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setSubAdmin&id=$!type.id',function(data){
				$('#setAdminToChild')[0].disabled=false;
			});
	}
}

function setAuditChild(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setAuditToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setSubAudit&id=$!type.id',function(data){
				$('#setAuditToChild')[0].disabled=false;
			});
	}
}

function setFlowChild(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setFlowToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setSubFlow&id=$!type.id',function(data){
				$('#setFlowToChild')[0].disabled=false;
			});
	}
}

function setFormChild(){
	if(confirm("确实要应用到所有子频道吗？")){
		$('#setFormToChild')[0].disabled=true;
		jQuery.get('/manage_type_ajax.ad?parameter=setSubForm&id=$!type.id',function(data){
				$('#setFormToChild')[0].disabled=false;
			});
	}
}

function cancelSTree(){
	$('#stree').val('');
	$('#showTree').val('');
}

function cancelIndexTemplate(){
	$('#index_template').val('');
}

function cancelTypeTemplate(){
	$('#type_template').val('');
}

function cancelNewsTemplate(){
	$('#news_template').val('');
}

function cancelUForm(){
	$('#form').val('');
	$('#userForm').val('');
}

function cancelUser(){
	$('#admin').val('');
	$('#typeUsers').val('');
}

function cancelAudit(){
	$('#audit').val('');
	$('#typeAudits').val('');
}

function canFlow(){
	$('#flow').val('');
	$('#typeFlow').val('');
}
function resetOrder(){
	jQuery.get("/manage_type_ajax.ad" , { parameter : "resetOrder", sid:"#if($sid)$!sid#else$!type.site#end",parent : "$!type.id" },function(data){
		window.location.reload();
	});
}

function hideHtmlConfig(){
	$('#html_config').hide();
}

function showHtmlConfig(){
	$('#html_config').show();
}

function showUrl(){
	if($('#url')[0].disabled==true){
		$('#url')[0].disabled=false;
	}else{
		$('#url')[0].disabled=true;
	}
}
</script>
</head>
<body>
<form name="writeform" method="post" action="/manage_type.ad">
<input type="hidden" name="parameter" value="$!action" />
<input type="hidden" name="site" value="#if($sid)$!sid#else$!type.site#end" />
<input type="hidden" name="id" value="$!type.id" />
<input type="hidden" name="tree_id" value="#if($tree_id)$tree_id#else$!type.tree_id#end" />
#if($type.order)
<input type="hidden" name="order" value="$!type.order" />
#end
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[内容管理]-[编辑频道]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_type.ad?parameter=add&sid=#if($sid)$!sid#else$!type.site#end"><img src="/include/manage/images/main/22.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_type.ad?parameter=add&sid=#if($sid)$!sid#else$!type.site#end">新增</a></div></td>
                  </tr>
                </table></td>
                <td width="55"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_type.ad?parameter=delete&id=$!type.id"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_type.ad?parameter=delete&id=$!type.id">删除</a></div></td>
                  </tr>
                </table></td>
								<td width="55"><table border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="14"><div align="center"><a href="javascript:resetOrder()"><img src="/include/manage/images/main/order.gif" width="14" height="14" /></a></div></td>
                    <td width="28"><div align="center"><a href="javascript:resetOrder()">排序</a></div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
    <tr> 
      <td width="80" height="25" bgcolor="#ffffff">&nbsp;频道名称：</td>
      <td width="300" bgcolor="#ffffff">&nbsp;
      	<input name="name" type="text" value="$!type.name" />
      </td>
      <td width="80" bgcolor="#ffffff">&nbsp;频道编号：</td>
      <td bgcolor="#ffffff">&nbsp;
      	$!type.id
      </td>
    </tr>
    <tr>
			<td height="25" bgcolor="#ffffff">&nbsp;父 频 道：</td>
      <td bgcolor="#ffffff">&nbsp;<input type="hidden" id="stype" name="parent" value="$!type.parent" />
        <input type="text" id="showType" name="showType" value="#if($type.getParentType())$type.getParentType().name#end" disabled />
        <input type="button" id="chooseType" name="chooseType" value="选择父频道"/>
      </td>
      		<td colspan="2" bgcolor="#ffffff">
      			&nbsp;共有 <b>$!type.totalnum</b> 篇文章，其中 <b><font color=red>$!type.pubnum</font></b> 篇已发布
      		</td>
		</tr>
	<tr>
		<td height="25" bgcolor="#ffffff">&nbsp;外部链接：</td>
		<td bgcolor="#ffffff">&nbsp;<input id="isurl" name="isurl" type="checkbox" #if($type.url)#if($type.url.length>0) checked="true"#end#end onclick="showUrl()" /><label for="isurl">是否链接到外部</label></td>
        <td colspan="2" bgcolor="#ffffff">&nbsp;
        	<input id="url" name="url" type="text" value="$!type.url" disabled="true" />
        </td>
    </tr>
		<tr>
      <td height="25" bgcolor="#ffffff">&nbsp;是否显示：</td>
      <td bgcolor="#ffffff">&nbsp;
      	<input name="display" id="isnotdisplay" type="radio" value="0"#if($type.display==0) checked#end /><label for="isnotdisplay">不显示</label>&nbsp;
      	<input name="display" id="isdisplay" type="radio" value="1"#if($type.display==1) checked#end /><label for="isdisplay">显示</label>&nbsp;
				<input type="button" id="setTypeDisplayToChild" name="setTypeDisplayToChild" value="应用子频道" onClick="setSubTypeDisplay()" />
      </td>
			<td height="25" bgcolor="#ffffff">&nbsp;是否会员：</td>
      <td bgcolor="#ffffff">&nbsp;
      	<input name="ismember" id="isnotmember" type="radio" value="0"#if($type.ismember==0) checked#end /><label for="isnotmember">非会员</label>&nbsp;
      	<input name="ismember" id="ismember" type="radio" value="1"#if($type.ismember==1) checked#end /><label for="ismember">会员</label>
      </td>
    </tr>
		
		<tr> 
      <td height="25" bgcolor="#ffffff">&nbsp;是否新窗口：</td>
      <td bgcolor="#ffffff">&nbsp;
      	<input name="target" id="isold" type="radio" value="0"#if($type.target==0) checked#end /><label for="isold">否</label>&nbsp;
      	<input name="target" id="isnew" type="radio" value="1"#if($type.target==1) checked#end /><label for="isnew">是</label>
      </td>
    	<td bgcolor="#ffffff">&nbsp;单页模式：</td>
        <td bgcolor="#ffffff">&nbsp;
        	<input name="show" id="isnotshow" type="radio" value="0"#if($type.show==0) checked#end /><label for="isnotshow">列表</label>&nbsp;
			<input name="show" id="isshow" type="radio" value="1"#if($type.show==1) checked#end /><label for="isshow">单页</label>
        </td>
    </tr>
	
    <tr>
    	<td height="25" bgcolor="#ffffff">&nbsp;每页条数：</td>
        <td bgcolor="#ffffff">&nbsp;
        	<input name="pagenum" type="text"#if($type.pagenum) value="$!type.pagenum"#else value="20"#end />
        </td>
		<td bgcolor="#ffffff">&nbsp;显示页数：</td>
        <td bgcolor="#ffffff">&nbsp;
        	<input name="pagesize" type="text" value="$!type.pagesize" />
        </td>
    </tr>	
    <tr>
    	<td height="25" bgcolor="#ffffff">&nbsp;排序方式：</td>
        <td bgcolor="#ffffff">&nbsp;
        	<select name="orderby" style="border:1px solid  gray">
        		<option value="order">默认</option>
        		<option value="pubdatedesc" #if($type.orderby=='pubdatedesc') selected#end>发布时间倒序</option>
				<option value="pubdate" #if($type.orderby=='pubdate') selected#end>发布时间</option>
				<option value="titledesc" #if($type.orderby=='titledesc') selected#end>文章标题倒序</option>
				<option value="title" #if($type.orderby=='title') selected#end>文章标题</option>
        	</select>
        </td>
    	<td bgcolor="#ffffff">&nbsp;是否搜索：</td>
        <td bgcolor="#ffffff">&nbsp;
        	<input name="search" id="isnotsearch" type="radio" value="0"#if($type.search==0) checked#end /><label for="isnotsearch">不被搜索</label>&nbsp;
			<input name="search" id="issearch" type="radio" value="1"#if($type.search==1) checked#end /><label for="issearch">能被搜索</label>
        </td>
    </tr>
	<tr>
		<td height="25" bgcolor="#ffffff">&nbsp;是否静态化：</td>
		<td bgcolor="#ffffff">&nbsp;
			<input name="html" id="isnothtml" type="radio" value="0" #if($type.html==0) checked#end onclick="hideHtmlConfig()" />
			<label for="isnothtml">动态生成</label>
			&nbsp;
			<input name="html" id="ishtml" type="radio" value="1" #if($type.html==1) checked#end onclick="showHtmlConfig()" />
			<label for="ishtml">静态化</label>
		</td>
		<td bgcolor="#ffffff" colspan="2">
			#if($type.html==1)<input id="gentypelist" type="button" value="生成频道列表页" />#end
		</td>
	</tr>
	<tr id="html_config" #if($type.html==0)style="display:none"#end>
		<td height="25" bgcolor="#ffffff">&nbsp;命名规则：</td>
		<td bgcolor="#ffffff">&nbsp;
										<input name="html_rule" id="rule_cn" type="radio" value="0" #if($type.html_rule==0) checked#end />
										<label for="rule_cn">中文命名</label>
										&nbsp;
										<input name="html_rule" id="rule_en" type="radio" value="2" #if($type.html_rule==2) checked#end />
										<label for="rule_en">英文/拼音命名</label>
										&nbsp;
										<input name="html_rule" id="rule_num" type="radio" value="1" #if($type.html_rule==1) checked#end />
										<label for="rule_num">传统ID命名</label></td>
									<td height="25" bgcolor="#ffffff">&nbsp;目录深度：</td>
									<td bgcolor="#ffffff">&nbsp;
										<input name="html_dir" id="dir_year" type="radio" value="0" #if($type.html_dir==0) checked#end />
										<label for="dir_year">按年分</label>
										&nbsp;
										<input name="html_dir" id="dir_month" type="radio" value="1" #if($type.html_dir==1) checked#end />
										<label for="dir_month">按年月分</label>
										&nbsp;
										<input name="html_dir" id="dir_day" type="radio" value="2" #if($type.html_dir==2) checked#end />
										<label for="dir_day">按年月日分</label></td>
	</tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;附加分类树：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;<input type="hidden" id="stree" name="tree" value="$!type.tree" />
		<input id="showTree" name="showTree" type="text" value="$!type.getTreeName()" disabled />
		<input id="chooseTree" type="button" value="选 择 树..." />
        <input type="button" name="cancelTree" value="取消" onClick="cancelSTree()" />
      </td>
    </tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;频道封面：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;
      	<input id="index_template" name="index_template" type="text" value="$!type.index_template" />
        <input id="chooseIndexTemplate" type="button" value="选择模板..." />
        <input type="button" name="cancelIndexT" value="取消" onClick="cancelIndexTemplate()" />
        <input type="button" id="setIndexTemplateToChild" name="setIndexTemplateToChild" value="应用子频道" onClick="setSubIndexTemplate()" />
      </td>
	</tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;频道模板：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;
      	<input id="type_template" name="type_template" type="text" value="$!type.type_template" />
        <input id="chooseTypeTemplate" type="button" value="选择模板..." />
        <input type="button" name="cancelTypeT" value="取消" onClick="cancelTypeTemplate()" />
        <input type="button" id="setTypeTemplateToChild" name="setTypeTemplateToChild" value="应用子频道" onClick="setSubTypeTemplate()" />
      </td>
		</tr>
		<tr>
      <td height="25" bgcolor="#ffffff">&nbsp;内容模板：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;
      	<input id="news_template" name="news_template" type="text" value="$!type.news_template" />
        <input id="chooseNewsTemplate" type="button" value="选择模板..." />
        <input type="button" name="cancelNewsT" value="取消" onClick="cancelNewsTemplate()" />
        <input type="button" id="setNewsTemplateToChild" name="setNewsTemplateToChild" value="应用子频道" onClick="setSubNewsTemplate()" />
      </td>
    </tr>
     <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;扩展字段：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;<input id="form" name="form" type="hidden" value="$!type.form" />
        <input id="userForm" name="userForm" type="text" value="$!type.getUserForm().name"  disabled />
        <input id="chooseForm" type="button" value="选择表单..." />
        <input type="button" name="cancelForm" value="取消" onClick="cancelUForm()" />
        <input type="button" id="setFormToChild" name="setFormToChild" value="应用子频道" onClick="setFormChild()" />
      </td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#ffffff">&nbsp;频道编辑：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;<input id="admin" name="admin" type="hidden" value="$!type.admin" />
        <input id="typeUsers" name="typeUsers" type="text" value="#foreach($user in $!type.getAdminUsers())$!user.username,#end" disabled />
      	<input id="chooseAdmin" type="button" value="选择编辑..." />
				<input type="button" name="cancelTree" value="取消" onClick="cancelUser()" />
        <input type="button" id="setAdminToChild" name="setAdminToChild" value="应用子频道" onClick="setAdminChild()" />
      </td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#ffffff">&nbsp;频道审核员：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;<input id="audit" name="audit" type="hidden" value="$!type.audit" />
        <input id="typeAudits" name="typeAudits" type="text" value="#foreach($user in $!type.getAuditUsers())$!user.username,#end" disabled />
      	<input id="chooseAudit" type="button" value="选择审核员..." />
				<input type="button" name="cancelTree" value="取消" onClick="cancelAudit()" />
        <input type="button" id="setAuditToChild" name="setAuditToChild" value="应用子频道" onClick="setAuditChild()" />
      </td>
    </tr>
	 <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;工作流：</td>
	  <td colspan="3" bgcolor="#ffffff">&nbsp;<input id="flow" name="flow" type="hidden" value="$!type.flow" />
		<input id="typeFlow" name="typeFlow" type="text" value="$!type.getFlowName()" disabled />
      	<input id="chooseFlow" type="button" value="选择工作流..." />
		<input id="aa" type="button" name="cancelFlow" value="取消" onClick="canFlow()" />
        <input type="button" id="setFlowToChild" name="setFlowToChild" value="应用子频道" onClick="setFlowChild()" />
      </td>
    </tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;频道描述：</td>
      <td colspan="3" bgcolor="#ffffff">&nbsp;
      	<textarea name="value" style="width:350px;font-size:12px">$!type.value</textarea>
      </td>
    </tr>
    <tr>
    	<td colspan="4" bgcolor="#ffffff">&nbsp;</td>
    </tr>
</table>
		</td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td valign="top"><div align="center"> 
          <input type="submit" name="Submit" value="保存" />
          &nbsp;
          <input type="reset" name="Reset" value="重写" />
			&nbsp;
			#if($action=="update")
			<input type="button" id="Review" name="Review" value="预览" onClick="window.open('/type.do?parameter=preview&tid=$!type.id')" />
			&nbsp;
			#if($thisSite.html==1 or $type.html==1)
          <input type="button" id="gentype" name="generate" value="生成"/>
			#end
			#end
        </div></td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table>
	</td>
  </tr>
</table>
  </form>
</body>
</html>